package com.github.pig.admin.model.feeapply;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxm
 * @since 2018-12-11
 */
@TableName("fee_apply_record")
@Data
public class FeeApplyRecord extends Model<FeeApplyRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.UUID)
    private String id;
    @TableField("apply_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss" )
    private Date applyTime;
    @TableField("apply_user")
    private String applyUser;
    private String status;
    @TableField("fee_type")
    private String feeType;
    @TableField("process_id")
    private String processId;
    @TableField("fee_num")
    private String feeNum;
    private String title;
    @TableField("img_path")
    private String imgPath;
    @TableField("del_flag")
    private String delFlag;
    @TableField("create_time")
    private Date createTime;
    @TableField(exist = false)
    private String applyUserName;
    @TableField(exist = false)
    private String statusName;
    @TableField(exist = false)
    private String feeTypeName;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
